<template>
	<view class="router-page">
		
		<button class="btn" @click="goTarget">跳转target</button>
		
		<button class="btn" @click="goTargetWithParam">跳转target携带参数</button>
		
	</view>
</template>

<script setup>
	const goTarget = ()=>{
		uni.navigateTo({
			url: '/pages/router/routeTarget'
		})
	}
	
	const goTargetWithParam = ()=>{
		uni.navigateTo({
			url: '/pages/router/routeTarget?name=zhangsan&age=18'
		})
	}
</script>

<style lang="less" scoped>
	.router-page{
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100%;
		padding: 20px;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		.btn {
			margin-top: 15px;
		}
	}
</style>
